package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterAnomalyrecourseHomedecorationAppealRequest struct {
	/*
	   投诉单id     */
	Id *int64 `json:"id" required:"true" `
	/*
	   申诉内容     */
	Remark *string `json:"remark" required:"true" `
	/*
	   图片凭证     */
	Images *[]string `json:"images,omitempty" required:"false" `
}

func (s *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest) SetId(v int64) *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest {
	s.Id = &v
	return s
}
func (s *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest) SetRemark(v string) *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest {
	s.Remark = &v
	return s
}
func (s *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest) SetImages(v []string) *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest {
	s.Images = &v
	return s
}

func (req *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Id != nil {
		paramMap["id"] = *req.Id
	}
	if req.Remark != nil {
		paramMap["remark"] = *req.Remark
	}
	if req.Images != nil {
		paramMap["images"] = util.ConvertBasicList(*req.Images)
	}
	return paramMap
}

func (req *TmallServicecenterAnomalyrecourseHomedecorationAppealRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
